package com.weirn.spring.commons.constants;

/**
 * Created by runing.wei on 2018/6/27.
 */
public enum AppIdEnum {

    REMOTESERVICE(77,"remoteservice","远程服务"),
    TZT(79,"tzt","投资通"),
    JRCONFIG(80,"jr-config","金融入网"),
    YEEPAYRMI(117,"yeepay-rmi","远程调用"),
    YEEPAYBOSS(119,"yeepay-boss","易宝boss");

    private int id;

    private String code;

    private String name;

    AppIdEnum(int id, String code, String name) {
        this.id = id;
        this.code = code;
        this.name = name;
    }

    public static String valueOf(int id){
        AppIdEnum[] appIdEnums = values ();
        for(AppIdEnum appIdEnum : appIdEnums){
            if(appIdEnum.getId () == id){
                return appIdEnum.getName ();
            }
        }
        return "无";
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

/**
 *
 *
 *
 */


